package com.mgface.thymeleaf.exception;

/**
 * 项目SQL异常类
 * 
 * @author yuxiang
 *
 */
public class ThymeleafSQLException extends ThymeleafException {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4903852474769460221L;
	private String explain;

	public String getExplain() {
		return explain;
	}

	public void setExplain(String explain) {
		this.explain = explain;
	}

	public ThymeleafSQLException() {
		super();
	}

	public ThymeleafSQLException(String message) {
		super(message);
		this.description = message;
	}

	public ThymeleafSQLException(int code, String message) {
		super(message);
		this.code = code;
		this.description = message;
	}
	
	public ThymeleafSQLException set(String info){
		this.setExplain(info);
		return this;
	}

	@Override
	public String explain() {
		return "ThymeleafSQLException�������쳣:"+this.explain;
	}

}
